package com.maiji.cloud.entities.shopingmall;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;

import com.maiji.cloud.entities.login.UserInfo;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@NoArgsConstructor
@Data
@Accessors(chain = true)
@Table(name = "capital_io")
@TableName("capital_io")
public class CapitalIOEntity {
	
	@TableId
	@Column(name = "uu_id", type = MySqlTypeConstant.VARCHAR, length = 50, isKey = true)
	private String uuId;
	
	@Column(name = "user_id", type = MySqlTypeConstant.VARCHAR, length = 50)
	private String userId;
	
	@Column(name = "type", type = MySqlTypeConstant.INT, length = 2)
	private Integer type; //1：充值，2：提现
	
	@Column(name = "money", type = MySqlTypeConstant.DOUBLE, length = 8, decimalLength = 2)
	private Double money; // 账户余额
	
	@Column(name = "io_money", type = MySqlTypeConstant.DOUBLE, length = 8, decimalLength = 2)
	private Double ioMoney; // 充值/提现金额
	
	@Column(name = "start", type = MySqlTypeConstant.INT, length = 1)
	private Integer start; //从哪提现，1-分销可用余额提现，2-订单返现余额提现
	
	@Column(name = "end", type = MySqlTypeConstant.VARCHAR, length = 50)
	private String end;//提现到哪里
	
	@Column(name = "in_time", type = MySqlTypeConstant.DATETIME)
	private Date inTime;

    @TableField(exist = false)
    private UserInfo userInfo;
	
}
